package lec01.pm;

import java.util.Arrays;

import eq.util.MyMath;

public class LoopDemo {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for (int n = 1; n <= 100; n++)
			if (MyMath.isPrime(n))
				System.out.print(n + " ");
		System.out.println();
		
		int a[]={1,1,23,12,3,123,12,3,12,3,};
		System.out.println(a.length);
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i]+" ");
			//a[i]++;
		}
		System.out.println();
		Arrays.sort(a);
		for (int i : a) {
			System.out.print(i+" ");
			
		}
		System.out.println();
		

	}

	
}
